package hn.cch.controller;

import hn.cch.entity.UserEntity;
import hn.cch.message.response.PageResponse;
import hn.cch.message.request.SearchRequest;
import hn.cch.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping(value = "/v1/user")
@RestController
public class UserController {

    @Autowired
    private UserService userService;

    @PostMapping(value = "/getUserPage")
    public ResponseEntity<PageResponse<UserEntity>> getUserPage(@RequestBody SearchRequest request){
        PageResponse<UserEntity> pageResponse = new PageResponse<>();

        return ResponseEntity.ok(pageResponse);
    }

}
